using System;
using System.Collections.Generic;
using UnityEngine;
using FairyGUI;
namespace Wwo
{
    public class CreateRole : Window
    {
        public CreateRole()
        {
        }

        protected override void OnInit()
        {
            this.contentPane = UIPackage.CreateObject("WaterWorld", "CreateRole").asCom;
            this.Center();

            GComponent returnBtn = this.contentPane.GetChild("Return").asCom;
            returnBtn.onClick.Add(() =>
            {
                UISets.GetInstance().SwitchShow(UISets.GetInstance().m_NewWorldView);
            });

            GComponent startWorld = this.contentPane.GetChild("StartGame").asCom;
            startWorld.onClick.Add(() =>
            {
                // Application.LoadLevel("SampleScene");
                UISets.GetInstance().OnlyShow(
                UISets.GetInstance().m_MainMenuView,
                UISets.GetInstance().m_NpcListView,
                UISets.GetInstance().m_ResListView
                );
            });
        }

        override protected void OnShown()
        {
        }
    }
}